#ifndef NETELEVATORAUTHORIZECMD_H
#define NETELEVATORAUTHORIZECMD_H

#include "Command/BaseCmd.h"
#include "Protocol/NetPointProtocol.h"
#include "Protocol/PointProtocol.h"
class NetElevatorAuthorizeCmd : public BaseCmd
{
    Q_OBJECT
public:

    enum{FunctionCode = NetPointProtocol::Elevatorauthorization};
//    enum{PointFunctionCode = PointProtocol::ControlPoint};
    Q_INVOKABLE explicit NetElevatorAuthorizeCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    quint16 roomNumber() const;
    void setRoomNumber(const quint16 &data);

    QString floorNumber() const;
    void setFloorNumber(const quint16 &data);

    quint16 storeyNumber() const;
    void setStoreyNumber(const quint16 &num);

    QString doorExtNumber() const;
    void setDoorExtNumber(const QString ext);

    QString roomFloorNumber() const;
    void setRoomFloorNumber(const QString floor);

private:
    quint16 m_roomNumber;
    quint16 m_storeyNumber;
     QString m_floorNumber;
     QString m_extNumber;  //门口机的编号
    QString m_roomFloorNumber;  //室内机所在楼层



};


#endif // NETELEVATORAUTHORIZECMD_H
